﻿package homework3;

import java.util.ArrayList;

public class Test {

	public static void main(String[] args) {
		ArrayList<Employee> addList = new ArrayList<Employee>();
		Employee zhangSan = new Employee(1, "zhangsan", 18, 3000);
		Employee liSi = new Employee(2, "lisi    ", 25, 3500);
		Employee wangWu = new Employee(3, "wangwu     ", 22, 3200);
		addList.add(zhangSan);
		addList.add(liSi);
		addList.add(wangWu);
		Employee zhaoLiu = new Employee(2, "zhaoliu     ", 23, 3400);
		addList.add(1, zhaoLiu);
		addList.remove(wangWu);
		Work worker = new Work();
		for (Employee employee : addList) {
			System.out.println(employee.getId() + "\t" + employee.getName() + "\t" + employee.getAge() + "\t"
					+ employee.getSalary());
			worker.work(employee.getName());
		}
		System.out.println(zhangSan.equals(liSi));
		System.out.println(zhangSan.equals(zhangSan));

	}
}
